.cart-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-color);
}

.adm-nav-bar {
  background-color: var(--card-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.cart-content {
  flex: 1;
  padding: 10px;
}

/* 购物车列表样式 */
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background-color: var(--card-bg);
  border-radius: 8px;
}

.item-check {
  flex: 0 0 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.item-image {
  flex: 0 0 80px;
  margin: 0 10px;
}

.item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 80px;
}

.item-name {
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--text-color);
}

.item-price {
  color: #ff4d4f;
  font-weight: 600;
  margin-bottom: 10px;
}

.item-quantity {
  display: flex;
  justify-content: flex-end;
}

/* 为底部按钮留出空间 */
.cart-bottom-space {
  height: 70px;
  width: 100%;
}

/* 固定在底部的结算栏 */
.cart-fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  height: 60px;
  padding: 0 10px;
  box-shadow: 0 -3px 10px var(--shadow-color);
  z-index: 999;
  max-width: 480px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
}

/* 全选区域 */
.cart-select-all {
  width: 80px;
  display: flex;
  align-items: center;
  color: var(--text-color);
}

/* 总价信息 */
.cart-total-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 10px;
}

.cart-total-price {
  font-size: 14px;
  color: var(--text-color);
}

.highlight-price {
  color: #ff4d4f;
  font-weight: 600;
  font-size: 18px;
}

.cart-count {
  font-size: 12px;
  color: rgba(153, 153, 153, 0.8);
}

/* 结算按钮容器 */
.cart-checkout-button {
  width: 120px;
}

/* 结算按钮 */
.checkout-btn {
  width: 100%;
  height: 40px;
  background-color: #ff4d4f;
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

/* 禁用状态 */
.checkout-btn.disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* 按钮悬停效果 */
.checkout-btn:hover:not(.disabled) {
  opacity: 0.9;
}

/* 按钮点击效果 */
.checkout-btn:active:not(.disabled) {
  opacity: 0.8;
}

/* 空购物车样式 */
.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
}

.empty-cart-text {
  margin-top: 16px;
  color: var(--text-color);
}

/* 加载样式 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}

.loading-spinner {
  font-size: 18px;
  padding: 20px;
  color: var(--text-color);
  background-color: var(--card-bg);
}